package cn.edu.sbs.talent.result;

import lombok.Getter;

@Getter
public enum ResultCode {

    SUCCESS(200, "成功"),
    FAIL(400, "请求异常"),
    UNAUTHORIZED(401, "未经授权"),
    NOT_FOUND(404, "页面不存在"),
    INTERNAL_SERVER_ERROR(500, "业务错误");

    private final int code;
    private final String defMsg;

    ResultCode(int code, String defMsg) {
        this.code = code;
        this.defMsg = defMsg;
    }

}
